﻿@model QRCode.Models.Company

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm("Edit", "Company", FormMethod.Post, new { enctype = "multipart/form-data" }))
{ 

    <fieldset>
        <legend>Company</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Name)
        </div>
        <div>
            <h2>@Model.Name</h2>
        </div>

        <br />
        <img src= "@Url.Content(ViewBag.Logo)" alt="Image" />
        <br />
        Update Logo
        <br />
        <input type="file" id="LogoToUpload" name="logo" />
        <br />
        <img src= "@Url.Content(ViewBag.BusinessCard)" alt="Image" />
        <br />
        Update Business Card 
        <br />
        <input type="file" id="BusinessCardToUpload" name="businesscard" />
        <br />
        <img src= "@Url.Content(ViewBag.Flyer)" alt="Image" />
        <br />
        Update Flyer 
        <br />
        <input type="file" id="FlyerToUpload" name="flyer" />
        <br />


        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
